// 权限相关类型定义

export interface Permission {
  id: number
  tenantId: number
  permissionCode: string
  permissionName: string
  permissionType: 'MENU' | 'BUTTON'
  parentId: number
  routePath?: string
  componentPath?: string
  icon?: string
  sortOrder: number
  status: number
  remark?: string
  createTime?: string
  updateTime?: string
}

// 权限树节点
export interface PermissionTreeNode {
  key: number
  title: string
  permissionCode: string
  permissionType: 'MENU' | 'BUTTON'
  children?: PermissionTreeNode[]
}

